package edu.indiana.application;

import org.opencyc.api.CycAccess;
import org.opencyc.api.CycApiException;
import org.opencyc.api.CycConnection;

import java.io.IOException;
import java.net.UnknownHostException;


public class cycTalk {
        public void getGenls(String constant) {
                CycAccess access;
                try {
                        System.out.println("The text box entry " + constant);
                        access = new CycAccess(CycConnection.DEFAULT_HOSTNAME, CycConnection.DEFAULT_BASE_PORT);
                        System.out.println(access.getAllGenls(access.getKnownConstantByName(constant)));
                } catch (UnknownHostException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                } catch (CycApiException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                } catch (IOException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                }
        }
}
